﻿@model MvcWeb.ViewModels.Manager.ManagerBatchEditModel
@{
    ViewBag.Title = "批量编辑";
}
@if (false)
{
        <script src="../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
}
<div style="padding: 10px;">
    <div style="padding-bottom: 5px;">
        <input type="button" onclick="history.go(-1)" value="返回资产分类列表" class="btn_green" />
    </div>
    @using (Html.BeginForm())
    {
        <div style="line-height: 30px; font-weight: bold; color: Red;"></div>
        @Html.HiddenFor(m => m.editIDs)
        <table class="tb">
             <tr>
                <td>条形码</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetBarcode)
                </td>

                <td>出厂日期</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetOutManu)
                </td> 

            </tr>

            <tr>
           
                

                <td>保修年限</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetWarrant)
                </td>

                <td> 保修逾期日期</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetWarrantLastTime)
                </td>
            </tr>

            <tr>
                <td>品牌商</td>
                <td>
                    @Html.DropDownListFor(m => m.assetManagerModel.AssetBrand, new SelectList((Dictionary<int, string>)ViewData["brandList"], "key", "value"), "请选择类型")
                </td>

                <td>供应商</td>
                <td>
                    @Html.DropDownListFor(m => m.assetManagerModel.AssetSupply, new SelectList((Dictionary<int, string>)ViewData["supplyList"], "key", "value"), "请选择类型")
                </td> 

            </tr>
            <tr>

                <td>采购人</td>
                <td>
                    @Html.DropDownListFor(m => m.assetManagerModel.AssetPurchaseID, new SelectList((Dictionary<Guid, string>)ViewData["AssetPurchaseIDList"], "key", "value"), "请选择类型")
                </td>

                <td>采购成本</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetPurchaseCost)
                </td>

            </tr>


            <tr>
                <td>资金来源</td>
                <td>
                    @Html.DropDownListFor(m => m.assetManagerModel.AssetPurchaseCostFrom, new SelectList((Dictionary<int, string>)ViewData["AssetPurchaseCostFromList"], "key", "value"), "请选择类型")
                </td>

                <td>所在部门</td>
                <td>
                    @Html.DropDownListFor(m => m.assetManagerModel.AssetDepartID, new SelectList((Dictionary<int, string>)ViewData["AssetDepartIDList"], "key", "value"), "请选择类型")
                </td> 

                </tr>
                  
            
            <tr>
                <td>保管人</td>
                <td>
                    @Html.DropDownListFor(m => m.assetManagerModel.AssetCustodyMemberID, new SelectList((Dictionary<Guid, string>)ViewData["AssetCustodyMemberIDList"], "key", "value"), "请选择类型")
                </td>
            
                <td>保管地点</td>
                <td >
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetCustodyAddress, new { @style = "width:98%;" })
                </td> 
            </tr>

            <tr>

                <td>使用人</td>
                <td>
                    @Html.DropDownListFor(m => m.assetManagerModel.AssetUsedMemberID, new SelectList((Dictionary<Guid, string>)ViewData["AssetUsedMemberIDList"], "key", "value"), "请选择类型")
                </td>
            
                <td>使用地点</td>
                <td >
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetUsedAddress, new { @style = "width:98%;" })
                </td>
            </tr>

            <tr>
                <td> 使用年限</td>
                <td>
                     @Html.TextBoxFor(m => m.assetManagerModel.AssetUsedYear)
                </td>

                <td>年折旧率</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetDepriciationRate)
                </td>

                </tr>
                <tr>

                <td>维护周期</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetMaintenanCycle)
                </td>

                <td>规格型号</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetSpecModel)
                </td>
                 
            </tr>

             <tr>
                <td>采购编号</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetBuyCode)
                </td>

                <td>关联的合同号</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetContractID)
                </td>

                </tr>
                <tr>

                <td>采购发票</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetBuysssInvoiceNumber)
                </td>
            
                <td>入账日期</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetPurchaseTime)
                </td>
            </tr>
            
            <tr>
                <td>购入日期</td>
                <td>
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetBuyTime)
                </td>
            
                <td>资产去处</td>
                <td>
                    @Html.DropDownListFor(m => m.assetManagerModel.AssetOut, new SelectList((Dictionary<int, string>)ViewData["AssetOutList"], "key", "value"), "请选择类型")
                </td> 
                
            </tr>
            
            <tr>

                <td>图片</td>
                <td colspan="3">
                    @Html.TextBoxFor(m => m.assetManagerModel.AssetPictures)
                </td>

            </tr>

            <tr>
                <td>描述</td>
                <td colspan="3">
                    @Html.TextAreaFor(m => m.assetManagerModel.AssetDescript, 8, 100, "")
                </td>
            </tr>
             
        </table>
            
         
        <p style="padding: 10px 0px 0px 100px;">
            <input type="submit" value="保存" class="btn_green" />
                    <input type="reset" value="重置" class="btn_orange" />
        </p>
    }
</div>

<script type="text/javascript">
    $(function () {
        $("#assetManagerModel_AssetOutManu").ligerDateEditor({ initValue: $("#assetManagerModel_AssetOutManu").val() });
        $("#assetManagerModel_AssetBuyTime").ligerDateEditor({ initValue: $("#assetManagerModel_AssetBuyTime").val() });
        $("#assetManagerModel_AssetPurchaseTime").ligerDateEditor({ initValue: $("#assetManagerModel_AssetPurchaseTime").val() });
        $("#assetManagerModel_AssetWarrantLastTime").ligerDateEditor({ initValue: $("#assetManagerModel_AssetWarrantLastTime").val() });
    });

</script>